package com.platform.api.bzproject.service.impl;

import com.platform.api.bzproject.model.DownRecord;
import com.platform.api.bzproject.dao.DownRecordMapper;
import com.platform.api.bzproject.service.IDownRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 下载次数 服务实现类
 * </p>
 *
 * @author guoshao
 * @since 2021-12-25
 */
@Service
public class DownRecordServiceImpl extends ServiceImpl<DownRecordMapper, DownRecord> implements IDownRecordService {

    @Autowired
    private DownRecordMapper downRecordMapper;

    /**
     * 删除前一天记录
     * @return
     */
    @Override
    public int deleteIntervalData() {
        return downRecordMapper.deleteIntervalData();
    }
}
